package com.cskaoyan.service;

import com.cskaoyan.bean.data.CatalogyData;
import com.cskaoyan.bean.data.CatalogyListData;
import com.cskaoyan.model.MarketCategory;

import java.util.List;

public interface CategoryService {
    List queryLevelOne();

    List<MarketCategory> list(String level, int page, int limit);

    List<MarketCategory> queryChildren(Integer categoryId);

    MarketCategory findById(Integer id);

    CatalogyData queryCurrentById(int id);

    CatalogyListData querCurrentList();

    MarketCategory findCurrentCategory(Integer id);

    MarketCategory findFatherById(Integer categoryId);

    List<MarketCategory> queryBrother(Integer id);
}
